package com.mq.rabbitmq.topic.demo2;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2017/8/11.
 */
public class HelloReceive {

    @RabbitListener(queues="topic.message")    //监听器监听指定的Queue
    public void processC(String str) {
        System.out.println("HelloReceive1 topic message :<<<<<<<<<<<<<<<<<<:"+str);
    }

}